# P327
# 变量进阶
a = 1
print(id(a))
a = 3
b = a
print(id(b))
print(id(a))
b = 2
print(id(b))

# 字典
d = {}
d["key"] = 2
print(d)
d[1] = "整数"
print(d)
d[(1, 2)] = "nb"
print(d)
d[[1, 2]] = "lb"
print(d)